package com.hdoit.apollo.logical.cargo.dao;

import java.util.List;

import com.hdoit.apollo.logical.cargo.model.Cargo;
import com.hdoit.apollo.logical.viewmodel.cargo.CargoSearch;
import com.tennetcn.data.dao.base.ISuperDao;
import com.tennetcn.data.message.PagerModel;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年03月31日 15:01:47
 * @comment
 */
public interface ICargoDao extends ISuperDao<Cargo>{

	public Cargo getCargoByCargoNo(String cargoNo, String shopId);

	public boolean checkCargoNo(String cargoId, String cargoNo, String shopId);

	public boolean checkCargoNo(String cargoN);

	public Cargo queryModelByCollocationId(String collocationId);

	public List<Cargo> queryListMPForPC(CargoSearch search,PagerModel pagerModel);

	public Cargo queryModelForView(String key);

	public Cargo queryCargoById(String cargoId);

	public boolean deleteCargoById(String cargoId);

	public Cargo getCargoByShapeCode(String shapeCode, String shopId);

	public List<Cargo> queryListMPForWechat(CargoSearch search,
			PagerModel pagerModel);

}